package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.BillOfMaterial;
import com.nbsaas.boot.manufacturing.api.domain.response.BillOfMaterialResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 物料清单-实体对象转化成响应对象
*/

public class BillOfMaterialResponseConvert  implements Converter<BillOfMaterialResponse,BillOfMaterial> {

    @Override
    public BillOfMaterialResponse convert(BillOfMaterial source) {
        BillOfMaterialResponse  result = new  BillOfMaterialResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

